home *** CD-ROM | disk | FTP | other *** search
- ┌────────────────────────────────────────────────────────────────────────────┐
- │ Mod Name: CHEERS01.MOD Mod Author: Cheers │
- │ Difficulty: Easy Date: December 22, 1992 │
- │ File(s) Modded:NEWUSER.C WWIV Version: 4.21a(or lower) │
- │ Description: Adds to newuser logon information and puts it in a box. │
- │ │
- └────────────────────────────────────────────────────────────────────────────┘
-
- ══╡ INFO ╞══
-
- Well, this is my first published mod, and I should have a couple more
- coming out soon. It's fairly simple, and should take at the most about five
- minutes.
-
- ══╡ DISCLAIMER ╞══
-
- All I can say is that if you use this mod and it makes your monitor
- implode, or your hair stand up on end, it's not my fault. And if you screwed
- things up and didn't back up your sources, all I can say is 'Oh Well'. But
- other than that, I doubt you'll get any serious problems.
-
- ══╡ THE MOD ╞══
-
- /* EXISTING */ input_pw();
- /* EXISTING */ }
- /* EXISTING */
- /* EXISTING */ if (!hangup)
- /* EXISTING */ do {
-
- ══╡ block read this in ╞══
-
- if (okansi()){
- nl();
- nl();
- npr("5┌────────────────────────────────────────────────────────────────────────┐\r\n");
- npr("5│71. 1Name 7: 3%-30s 5│\r\n",thisuser.name);
- if (syscfg.sysconfig & sysconfig_no_alias)
- npr("5│72. 1City, State7: 3%s\r\n",thisuser.realname);
- else
- npr("5│72. 1Real Name 7: 3%-20s",thisuser.realname);
- npr(" 73. 1Callsign 7: 3%-6s 5│\r\n",thisuser.callsign);
- npr("5│74. 1Phone No. 7: 3%-10s ",thisuser.phone);
- npr(" 75. 1Gender 7: 3%c 5│\r\n",thisuser.sex);
- npr("5│76. 1Birthdate 7: 3%02d7/3%02d7/3%02d ",
- (int) thisuser.month, (int) thisuser.day, (int) thisuser.year);
- npr(" 77. 1Computer type 7: 3%-15s 5│\r\n",ctypes[thisuser.comp_type]);
- npr("5│78. 1Screen size7: 3%2d 7X 3%2d ",
- thisuser.screenchars, thisuser.screenlines);
- npr(" 79. 1Password 7: 3%-8s 5│\r\n",thisuser.pw);
- /* note #1 */ npr("5│7A. 1Address 7: 3%-30s 5│\r\n",thisuser.street); /* add */
- /* note #1 */ npr("5│7B. 1City7, 1State7: 3%-30s 5│\r\n",thisuser.citystate); /* add */
- /* note #1 */ npr("5│7C. 1Zipcode 7: 3%-5s 5│\r\n",thisuser.zip); /* add */
- pl("5│ 5│");
- npr("5│7D. 1Pause on screen 7: 3%-3s ",
- (thisuser.sysstatus & sysstatus_pause_on_page)?"On ":"Off");
- if (okansi()) {
- npr(" 7E. 1Extended color7: 3%-3s5 │\r\n",
- (thisuser.sysstatus & sysstatus_funky_colors)?"Yes":"No ");
- npr("5│ 1Full screen editor7: 3%-20s 5│\r\n",
- ((thisuser.defed) && (thisuser.defed<=numed))?
- editors[thisuser.defed-1].description:"None.");
- }
- pl("5│ 5│");
- pl("5│7Q. 1Everything is correct7. 5│");
- npr("5└────────────────────────────────────────────────────────────────────────┘\r\n");
- nl();
- nl();
- prt(2,"Which (1-9,A-E,Q) : ");
- ch=onek("QABCDE123456789");
- ok=0;
- switch(ch) {
- case 'Q': ok=1; break;
- case '1': input_name(); break;
- case '2': input_realname(); break;
- case '3': input_callsign(); break;
- case '4': input_phone(); break;
- case '5': input_sex(); break;
- case '6': input_age(&thisuser); break;
- case '7': input_comptype(); break;
- case '8': input_screensize(); break;
- case '9': input_pw(); break;
- /* note #1 */ case 'A': input_street(); break; /* ADD - FROM MOD */
- /* note #1 */ case 'B': input_citystate(); break; /* ADD - FROM MOD */
- /* note #1 */ case 'C': input_zip(); break; /* ADD - FROM MOD */
- case 'D': input_pause(); break;
- case 'E': input_extend(); break;
- }
- } else {
-
- ══╡ stop block reading ╞══
-
- /* EXISTING */ nl();
- /* EXISTING */ nl();
- /* EXISTING */ npr("1. Name : %s\r\n",thisuser.name);
- /* EXISTING */ if (syscfg.sysconfig & sysconfig_no_alias)
- /* EXISTING */ npr("2. City, State : %s\r\n",thisuser.realname);
- /* EXISTING */ else
-
- /* EXISTING */ case '7': input_comptype(); break;
- /* EXISTING */ case '8': input_screensize(); break;
- /* EXISTING */ case '9': input_pw(); break;
- /* EXISTING */ }
- /* ADD */ }
- /* EXISTING */ } while ((!ok) && (!hangup));
- /* EXISTING */
- /* EXISTING */ if (!hangup) {
-
-
-
-
-
- ══╡ NOW ADD THESE VOIDS ANYWHERE IN NEWUSER.C ╞══
-
- void input_pause()
- {
- if (thisuser.sysstatus & sysstatus_pause_on_page)
- thisuser.sysstatus ^= sysstatus_pause_on_page;
- nl();
- pl("Pause each screenfull? ");
- if (yn())
- thisuser.sysstatus |= sysstatus_pause_on_page;
- }
-
- void input_extend()
- {
- if (thisuser.sysstatus & sysstatus_funky_colors)
- thisuser.sysstatus ^= sysstatus_funky_colors;
- nl();
- pl("Use extended colors? ");
- if (yn())
- thisuser.sysstatus |= sysstatus_funky_colors;
- }
-
- ══╡ NOTES ╞══
-
- #1: if you don't have the from mod put in, just remove these few
- lines from the program.....
-
- ══╡ COMPILE ╞══
-
- That should be about it....if you have any problems feel free to
- give my board CHEERS a call at (410) 692-9410, or e-mail me RenegadeNet
- node @13007. Good Luck:)
-
-